package com.ygqh.baby.mapper;

import java.util.Date;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.po.YgActionAddress;
import com.ygqh.baby.po.YgActionAddressExample;

public interface YgActionAddressMapper {
	int countByExample(YgActionAddressExample example);

	int deleteByExample(YgActionAddressExample example);

	int deleteByPrimaryKey(Long id);

	int insert(YgActionAddress record);

	int insertSelective(YgActionAddress record);

	List<YgActionAddress> selectByExample(YgActionAddressExample example);

	YgActionAddress selectByPrimaryKey(Long id);

	int updateByExampleSelective(@Param("record") YgActionAddress record,
			@Param("example") YgActionAddressExample example);

	int updateByExample(@Param("record") YgActionAddress record, @Param("example") YgActionAddressExample example);

	int updateByPrimaryKeySelective(YgActionAddress record);

	int updateByPrimaryKey(YgActionAddress record);

	int countSuper(@Param("userName") String userName, @Param("startDate") Date startDate,
			@Param("endDate") Date endDate, @Param("isSync") Boolean isSync, @Param("q") String q);

	List<YgActionAddress> selectSuper(@Param("queryInfo") QueryInfo queryInfo, @Param("userName") String userName,
			@Param("startDate") Date startDate, @Param("endDate") Date endDate, @Param("isSync") Boolean isSync,
			@Param("q") String q);

}
